package org.example.mynote.mapper;

import org.apache.ibatis.annotations.Param;
import org.example.mynote.Entity.Note;

import java.util.List;
import java.util.Optional;

public interface NoteMapper {
    void insert(Note note);

    void update(Note note);

    void deleteById(Long id);

    List<Note> searchByTitle(@Param("userId") Long id,@Param("keyword") String keyword);

    List<Note> findByNotebookId(Long notebookId);

    Optional<Object> findById(Long noteId);
}
